#include <iostream>
using namespace std;

bool repeatedSubstringPattern(string s) {
    int len = s.length();
  
    for (int i = 1; i <= len / 2; i++) {
        if (len % i != 0) {
            continue;
        }
        
        string sub = s.substr(0, i);  
        string temp = "";

        for (int j = 0; j < len / i; j++) {
            temp += sub;
        }
    
        if (temp == s) {
            return true;
        }
    }
    
    return false;
}


int main() {
    string s = "abcabcabc";  
    bool result = repeatedSubstringPattern(s);
    if (result) {
        cout << "The string is made up of repeated substrings." << endl;
    } else {
        cout << "The string is not made up of repeated substrings." << endl;
    }

    return 0;
}